package com.hzlx.data.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzlx.data.mapper.EquipmentRealtimeDataMapper;
import com.hzlx.data.domain.EquipmentRealtimeData;
import com.hzlx.data.service.IEquipmentRealtimeDataService;

/**
 * 设备实时运行状态与关键指标Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class EquipmentRealtimeDataServiceImpl implements IEquipmentRealtimeDataService 
{
    @Autowired
    private EquipmentRealtimeDataMapper equipmentRealtimeDataMapper;

    /**
     * 查询设备实时运行状态与关键指标
     * 
     * @param dataId 设备实时运行状态与关键指标主键
     * @return 设备实时运行状态与关键指标
     */
    @Override
    public EquipmentRealtimeData selectEquipmentRealtimeDataByDataId(Long dataId)
    {
        return equipmentRealtimeDataMapper.selectEquipmentRealtimeDataByDataId(dataId);
    }

    /**
     * 查询设备实时运行状态与关键指标列表
     * 
     * @param equipmentRealtimeData 设备实时运行状态与关键指标
     * @return 设备实时运行状态与关键指标
     */
    @Override
    public List<EquipmentRealtimeData> selectEquipmentRealtimeDataList(EquipmentRealtimeData equipmentRealtimeData)
    {
        return equipmentRealtimeDataMapper.selectEquipmentRealtimeDataList(equipmentRealtimeData);
    }

    /**
     * 新增设备实时运行状态与关键指标
     * 
     * @param equipmentRealtimeData 设备实时运行状态与关键指标
     * @return 结果
     */
    @Override
    public int insertEquipmentRealtimeData(EquipmentRealtimeData equipmentRealtimeData)
    {
        return equipmentRealtimeDataMapper.insertEquipmentRealtimeData(equipmentRealtimeData);
    }

    /**
     * 修改设备实时运行状态与关键指标
     * 
     * @param equipmentRealtimeData 设备实时运行状态与关键指标
     * @return 结果
     */
    @Override
    public int updateEquipmentRealtimeData(EquipmentRealtimeData equipmentRealtimeData)
    {
        return equipmentRealtimeDataMapper.updateEquipmentRealtimeData(equipmentRealtimeData);
    }

    /**
     * 批量删除设备实时运行状态与关键指标
     * 
     * @param dataIds 需要删除的设备实时运行状态与关键指标主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRealtimeDataByDataIds(Long[] dataIds)
    {
        return equipmentRealtimeDataMapper.deleteEquipmentRealtimeDataByDataIds(dataIds);
    }

    /**
     * 删除设备实时运行状态与关键指标信息
     * 
     * @param dataId 设备实时运行状态与关键指标主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRealtimeDataByDataId(Long dataId)
    {
        return equipmentRealtimeDataMapper.deleteEquipmentRealtimeDataByDataId(dataId);
    }
}
